using System;
using System.Collections.Generic;
using System.Text;

namespace AntEater.ComponentModel.BuildElements
{
    /// <summary>
    /// Specifies an Open File Action on a Build Element.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class,AllowMultiple=false)]
    public sealed class OpenBuildFileActionAttribute:Attribute
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="T:OpenBuildFileActionAttribute"/> class.
        /// </summary>
        /// <param name="buildFilePathPropertyName">The name of the property which provides the build file path.</param>
        /// <param name="actionText">The text representation of the action.</param>
        public OpenBuildFileActionAttribute(string buildFilePathPropertyName, string actionText) {
            this._buildFilePathPropertyName = buildFilePathPropertyName;
            this._actionText = actionText;
        }

        private string _buildFilePathPropertyName;

        /// <summary>
        /// Gets the name of the property which provides the build file path.
        /// </summary>
        /// <value>The name of the property which provides the build file path.</value>
        public string BuildFilePathPropertyName {
            get { return _buildFilePathPropertyName; }
        }

        private string _actionText;

        /// <summary>
        /// Gets the text representation of the action.
        /// </summary>
        /// <value>The text representation of the action.</value>
        public string ActionText {
            get { return _actionText; }
        }

    }
}
